#include<stdio.h>

void main()
{
	int lev;
	float pro, i = 0;
	printf("input I\n");
	scanf("%f", &pro);

	while(pro > 100)
	{
		i += 1;
		pro -= 100;
	}
	lev = (int)pro / 10;
	switch(lev)
	{
		case 10:
		case 9:
		case 8:
		case 7:
		case 6:
			{
				i += (pro - 60) * 0.015;
				pro = 60;
			}
		case 5:
		case 4:
			{
				i += (pro - 40) * 0.03;
				pro = 40;
			}
		case 3:
		case 2:
			{
				i +=(pro - 20) * 0.05;
				pro = 20;
			}
        case 1:
			{
				i +=(pro -10) * 0.075;
				pro = 10;
			}
		default:
			{
				i += pro * 0.1;
				break;
			}
	}
	printf("bonus=%f\n",i);
}
